package com.hangzhou.xyj.net.request;

import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by neo.duan on 2016/4/29.
 * 同意加入圈子
 */
public class AgreeJoinGroupReq extends BaseRequest {

    public AgreeJoinGroupReq(String userId, String groupId) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("userId", userId);
        jsonObject.addProperty("groupId", groupId);
        add("data", new Gson().toJson(jsonObject));
    }

    @Override
    public String getUrl() {
        return API.AGREE_JOIN_GROUP;
    }
}
